Skip to content

install.sh: upgrade a source install instead of failing on bin/ttp - #211

Merged
onyks-os merged 1 commit into
mainfrom
fix/install-upgrade
Dec 3, 2026
Merged

onyks-os merged 1 commit into
mainfrom
fix/install-upgrade

Conversation

@onyks-os

@onyks-os onyks-os commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Upgrading a source install from 0.5.1 to 0.5.2 with sudo ./scripts/install.sh failed:

FileExistsError: File already exists: /opt/ttp/venv/bin/ttp

install_locked.sh installs the wheel with python -m installer, which never overwrites. So install.sh only works on a fresh /opt/ttp, and the failure can come after part of the new version has already been written.

  • install_locked.sh: pip uninstall --yes transparent-tor-proxy before installer. When nothing is installed it is a no-op.
  • install.sh: rm -rf /opt/ttp/ttp before copying, so modules removed by a release (e.g. the watchdog's old state machine) are not left behind.
  • CI: the isolated runtime step installs twice into one venv. Checked locally that the old script fails the second install and the new one passes.

🤖 Generated with Claude Code

install_locked.sh installs the wheel with `installer`, which never
overwrites, so re-running scripts/install.sh over an existing /opt/ttp
failed with FileExistsError: /opt/ttp/venv/bin/ttp (seen upgrading 0.5.1
to 0.5.2). Uninstall the previous version from the venv first, and
replace /opt/ttp/ttp instead of copying over it. CI now installs the
runtime twice into one venv.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: onyks-os <129986281+onyks-os@users.noreply.github.com>
@onyks-os
onyks-os merged commit 672c760 into main Dec 3, 2026
24 checks passed
@onyks-os
onyks-os deleted the fix/install-upgrade branch December 3, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant